package com.wangzhixuan.db.dao;

import com.wangzhixuan.db.bean.Payment;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Payment data access
 *
 * @author victor
 */
@Repository
public interface PaymentDao {
  
  public List<Payment> getPaymentsByOrder(@Param("orderId") long orderId);
  
  public long addPayment(Payment payment);

}
